package customer

import (
	"counter-help/admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type CusAuthRouter struct {}

// InitCusAuthRouter 初始化 cusAuth表 路由信息
func (s *CusAuthRouter) InitCusAuthRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	cusAuthRouter := Router.Group("cusAuth").Use(middleware.OperationRecord())
	cusAuthRouterWithoutRecord := Router.Group("cusAuth")
	cusAuthRouterWithoutAuth := PublicRouter.Group("cusAuth")
	{
		cusAuthRouter.POST("createCusAuth", cusAuthApi.CreateCusAuth)   // 新建cusAuth表
		cusAuthRouter.DELETE("deleteCusAuth", cusAuthApi.DeleteCusAuth) // 删除cusAuth表
		cusAuthRouter.DELETE("deleteCusAuthByIds", cusAuthApi.DeleteCusAuthByIds) // 批量删除cusAuth表
		cusAuthRouter.PUT("updateCusAuth", cusAuthApi.UpdateCusAuth)    // 更新cusAuth表
	}
	{
		cusAuthRouterWithoutRecord.GET("findCusAuth", cusAuthApi.FindCusAuth)        // 根据ID获取cusAuth表
		cusAuthRouterWithoutRecord.GET("getCusAuthList", cusAuthApi.GetCusAuthList)  // 获取cusAuth表列表
	}
	{
	    cusAuthRouterWithoutAuth.GET("getCusAuthPublic", cusAuthApi.GetCusAuthPublic)  // 获取cusAuth表列表
	}
}
